import request from '@/utils/request'

// 查询公寓图片列表
export function listTbapartimage(query) {
  return request({
    url: '/apartment/tbapartimage/list',
    method: 'get',
    params: query
  })
}

// 查询公寓图片详细
export function getTbapartimage(id) {
  return request({
    url: '/apartment/tbapartimage/' + id,
    method: 'get'
  })
}

// 新增公寓图片
export function addTbapartimage(data) {
  return request({
    url: '/apartment/tbapartimage',
    method: 'post',
    data: data
  })
}

// 修改公寓图片
export function updateTbapartimage(data) {
  return request({
    url: '/apartment/tbapartimage',
    method: 'put',
    data: data
  })
}

// 删除公寓图片
export function delTbapartimage(id) {
  return request({
    url: '/apartment/tbapartimage/' + id,
    method: 'delete'
  })
}
